package com.atguigu.lease.web.app.mapper;

import com.atguigu.lease.model.entity.LeaseTerm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author xiongkunYang
 * @description 针对表【lease_term(租期)】的数据库操作Mapper
 * @createDate 2025-04-19 22:27:34
 * @Entity com.atguigu.lease.model.entity.LeaseTerm
 */
@Mapper
public interface LeaseTermMapper extends BaseMapper<LeaseTerm> {
    /**
     * 根据房间id查询所有可选租期
     *
     * @param roomId 房间id
     * @return 可选租期列表
     */
    List<LeaseTerm> selectListByRoomId(Long roomId);
}




